<div class="layui-card">
  <div class="layui-card-header layui-breadcrumb" style="visibility: visible">
    <a lay-href>代理商系统</a><span lay-separator>/</span>
    <a><cite>账户信息</cite></a>
  </div>
</div>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
      <script type="text/html" template lay-url="/api/data/count4Account">
        <div class="layui-col-sm6 layui-col-md4">
          <div class="layui-card">
            <div class="layui-card-header">
              账户余额
              <span class="layui-badge layui-bg-green layuiadmin-badge">总</span>
            </div>
            <div class="layui-card-body layuiadmin-card-list">
              <p class="layuiadmin-big-font">{{ d.data.balance/100 }}</p>
              <p>
                  可结算金额
                <span class="layuiadmin-span-color">{{ d.data.availableSettAmount/100 }}</span>
              </p>
            </div>
          </div>
        </div>
        <div class="layui-col-sm6 layui-col-md4">
          <div class="layui-card">
            <div class="layui-card-header">
              下级商户
              <span class="layui-badge layui-bg-orange layuiadmin-badge">总</span>
            </div>
            <div class="layui-card-body layuiadmin-card-list">
              <p class="layuiadmin-big-font">{{ d.data.mchCount }}</p>
              <p>
                下级代理
                <span class="layuiadmin-span-color">{{ d.data.agentCount }}</span>
              </p>
            </div>
          </div>
        </div>
      </script>
      <script type="text/html" template lay-url="/api/data/count4agent">
        <div class="layui-col-sm6 layui-col-md4">
          <div class="layui-card">
            <div class="layui-card-header">
                总利润
              <span class="layui-badge layui-bg-cyan layuiadmin-badge">总</span>
            </div>
            <div class="layui-card-body layuiadmin-card-list">
              <p class="layuiadmin-big-font">{{ d.data.agentProfitObj.totalProfit/100 }}</p>
              <p>
                  收款 | 代付 | 充值
                <span class="layuiadmin-span-color">{{ d.data.agentProfitObj.payProfit/100 }} | {{ d.data.agentProfitObj.rechargeProfit/100 }} | {{ d.data.agentProfitObj.agentpayProfit/100 }}</span>
              </p>
            </div>
          </div>
        </div>
      </script>
    </div>
</div>

<script>
layui.use('console', layui.factory('console'));
</script>

